home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 3 / ACE CD 3.iso / files / utils / cando12.dms / in.adf / HelpFiles / Simple / FUN.DATA next >
Encoding:
Text File  |  1990-01-29  |  5.5 KB  |  210 lines

  1. |integer|
  2. windowtitle `<Integer> = Integer(expression)`
  3. printlf `Converts the expression to an Integer
  4. printlf `if possible.
  5. end
  6.  
  7. |absolute|
  8. windowtitle `<integer> = Absolute(<value>)
  9. printlf `Returns the absolute value of <value>.
  10. end
  11.  
  12. |limit|
  13. windowtitle `<integer> = Limit(<limit1>,<limit2>,<testvalue>)
  14. printlf `Returns the <testvalue> if it is between
  15. printlf `<limit1> and <limit2>.  If <testvalue> is
  16. printlf `greater than both <limit1> and <limit2> it
  17. printlf `will return the larger of the limits.  If
  18. printlf `<testvalue> is smaller than both limits,
  19. printlf `it will return the smaller of the limits.
  20. end
  21.  
  22. |max|
  23. windowtitle `<integer> = Max( <val> {,<val> , ...})
  24. printlf `Returns the value of the highest parameter.
  25. printlf
  26. print `SEE ALSO: `
  27. subject `Min`Min`
  28. end
  29.  
  30. |min| 
  31. windowtitle `<integer> = Min( <val> {,<val> , ...})
  32. printlf `Returns the value of the lowest parameter.
  33. print `SEE ALSO: `
  34. subject `Max`Max`
  35. end
  36.  
  37. |random|
  38. windowtitle `<integer> = Random( <Minimum> , <Maximum> )
  39. printlf `Returns a random integer between and
  40. printlf `including the <Minimum> and <Maximum>
  41. printlf `values.
  42. end
  43.  
  44. |sign|
  45. windowtitle `<integer> = Sign( <value> )
  46. printlf `Returns the sign of the value.
  47. printlf
  48. printlf ` 1 if positive.
  49. printlf ` 0 if Zero.
  50. printlf `-1 if negative.
  51. end
  52.  
  53. |ascii|
  54. windowtitle `<integer> = ASCII("string")
  55. printlf `Returns the ASCII value of the first
  56. printlf `character in the string.
  57. printlf
  58. print `SEE ALSO: `
  59. subject `Char`Char`
  60. end
  61.  
  62. |char|
  63. windowtitle `"string" = Char( <integer> )
  64. printlf `Returns a single character corresponding
  65. printlf `to an ASCII integer.
  66. printlf
  67. print `SEE ALSO: `
  68. subject `ASCII`ASCII`
  69. end
  70.  
  71. |numofchars|
  72. windowtitle `<integer> = NumberOfChars("string")
  73. printlf `Returns the number of characters in the
  74. printlf `given string. 
  75. end
  76.  
  77. |lowcase|
  78. windowtitle `"string" = LowerCase("STRING")
  79. printlf `Returns a string with all the characters
  80. printlf `converted to lowercase.
  81. printlf
  82. print `SEE ALSO: `
  83. subject `UpperCase`UpperCase`
  84. end
  85.  
  86. |upcase|
  87. windowtitle `"STRING" = UpperCase("string");
  88. printlf    `Returns a string with all the characters
  89. printlf `converted to uppercase.
  90. printlf
  91. print `SEE ALSO: `
  92. subject `LowerCase`LowerCase`
  93. end
  94.  
  95. |dupestring|
  96. windowtitle `"string" = DupeString("string",<count>)
  97. printlf `Duplicates the given string <count> times
  98. printlf `and returns it as a single string.
  99. end
  100.  
  101. |trimstring|
  102. windowtitle `"string" = TrimString(" string ")
  103. printlf `Returns a string with leading and trailing
  104. printlf `space and TAB characters removed.  Also,
  105. printlf `multiple space and TAB characters within
  106. printlf `the string are replaced with a single space.
  107. end
  108.  
  109. |inschars|
  110. windowtitle `"string" = InsertChars("Source","destination",<offset>)
  111. printlf `Inserts a source string into the destination
  112. printlf `string at the specified offset.
  113. printlf
  114. print `SEE ALSO: `
  115. subject `RemoveChars`RemoveChars` 
  116. end
  117.  
  118. |remchars|
  119. windowtitle `"string" = RemoveChars("Source",<starting offset>,<length>)
  120. printlf `Removes characters from source string
  121. printlf `beginning at <starting offset> and for
  122. printlf `<length> amount of characters.
  123. printlf
  124. print `SEE ALSO: `
  125. subject `InsertChars`InsertChars` 
  126. end
  127.  
  128. |findchars|
  129. windowtitle `<integer> = FindChars("Source","Search",<starting offset>)
  130. printlf `Returns the offset of the "search" string
  131. printlf `if found in the "source" string, or else
  132. printlf `it returns 0.  The search will begin at
  133. printlf `the <starting offset>.
  134. printlf
  135. print `SEE ALSO: `
  136. subject `FindWord`FindWord`
  137. end
  138.  
  139. |getchars|
  140. windowtitle `"string" = GetChars("Source",<starting offset>,<length>)
  141. printlf `Returns a string of <length> characters
  142. printlf `taken from the "Source" string beginning at
  143. printlf `the <starting offset>.
  144. printlf
  145. print `SEE ALSO: `
  146. subject `GetWord`GetWord`
  147. end
  148.  
  149. |findword|
  150. windowtitle `<int> = FindWord("Source","Word"{,<StartWordNum>{,"WordDelimiters"}})
  151. printlf `Searches "Source" string for a matching 
  152. printlf `"Word" and returns its word number.  If not
  153. printlf `found it will return 0.  See Page 6-15 of
  154. printlf `the user's manual for more details.
  155. printlf
  156. print `SEE ALSO: `
  157. subject `FindChars`FindChars`
  158. end
  159.  
  160. |getword|
  161. windowtitle `"string" = GetWord("Source",<WordNum> {,"WordDelimiters"})
  162. printlf `Returns the <WordNum> word in the "Source"
  163. printlf `string.  See page 6-15 in the User's 
  164. printlf `manual about Word Delimiters.
  165. printlf
  166. print `SEE ALSO: `
  167. subject `GetChars`GetChars`
  168. end
  169.  
  170. |positionofword|
  171. windowtitle `<integer> = PositionOfWord("Source",<WordNum>,{"WordDelimiters"})
  172. printlf `Returns the character position of the
  173. printlf `<wordnum> word in the "Source" string.
  174. printlf `See page 6-16 in the user's manual for
  175. printlf `more details.
  176. end
  177.  
  178. |bumprevision|
  179. windowtitle `"string" = BumpRevision("Name")
  180. printlf `Changes the revision of "Name" in the
  181. printlf `same manner as the Workbench Duplicate
  182. printlf `function does with a filename.  See
  183. printlf `page 6-16 in the user's manual for
  184. printlf `examples. 
  185. end
  186.  
  187. |evalexpr|
  188. windowtitle `result = EvaluateExpression("String")
  189. printlf `If the string contains a valid expression,
  190. printlf `this function returns its result.  If
  191. printlf `the expression is not valid it will cause
  192. print `a run time error.  Use `
  193. subject `VerifyExpression`VerifyExpression`
  194. printlf
  195. print `first to avoid such problems. 
  196. end
  197.  
  198. |verexpr|
  199. windowtitle `«logical» = VerifyExpression("String")
  200. printlf `Returns TRUE if the string contains a
  201. printlf `valid expression, otherwise it returns
  202. printlf `FALSE.  This command should be used`
  203. print `before using `
  204. subject `EvaluateExpression`EvaluateExpression`
  205. printlf ` to avoid`
  206. printlf `run time errors.`
  207. end
  208.  
  209.  
  210.